﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ChatDTO
{
    public class Message
    {
        public string Text { get; set; }
        public DateTime Date { get; set; }
        public User User { get; set; }

        public Message() { }

        public Message(string text, DateTime date, User user)
        {
            Text = text;
            Date = date;
            User = user;
        }

        public Message(string text, User user)
        {
            Text = text;
            Date = DateTime.Now.ToLocalTime();
            User = user;
        }
    }
}
